﻿using myapp.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace myapp.Databases.DAO
{
    /// <summary>
    /// Item Dao
    /// </summary>
    public class ItemDao
    {
        /// <summary>
        /// List Item of Group
        /// </summary>
        /// <param name="itemGroup"></param>
        /// <returns></returns>
        public static List<Item> ItemOfGroup(ItemGroup itemGroup)
        {
            List<Item> lst = new List<Item>();
            for (int i = 1; i < 20 + itemGroup.Id; i++)
            {
                Item item = new Item()
                {
                    Id = i,
                    Name = "Món " + i,
                    ItemGroup = itemGroup
                };
                lst.Add(item);
            }
            return lst;
        }
    }
}
